#include <bits/stdc++.h>
using namespace std;
int main(){

	freopen("color.in", "r", stdin);
	freopen("color.out", "w", stdout);

    cout << "1\n0\n8";
	return 0;
}
